1. /* sdfdfmod.cpp by K.Tsuru */
  2. // function ID = 3009 DRADIX
  3. /***********************************************************
  4. SDouble class
  5. SDouble version of fmod
  6. x = a*y + f ( a is an integral and |f| < |y|)
  7. Return f, ipart=a.
  8. If y==0 return zero and does not change the value of ipart.
  9. ***********************************************************/
  10. #ifndef SN_H
  11. #include "sn.h"
  12. #endif
  13. SDouble Fmod(const SDouble& x, const SDouble& y, SDouble& ipart){
  14. if(y.Sign(3009) == 0) return 0.0;
  15. Modf(x/y, ipart); // x = a*y+f a is integral
  16. return x - ipart*y;
  17. }

sdfdfmod.cpp : last modifiled at 2007/10/30 19:46:17(576 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).